<?php include 'header.php'; ?>

<?php
$name = $this->name;
switch ($name) {
case 'home':
	$title = '修改"首页"内容';
	break;
case 'compiler':
	$title = '修改"编译原理精品课"';
	break;
case 'programming':
	$title = '修改"高级程序设计精品课"';
	break;
case 'intro':
	$title = '修改"教研室介绍"';
	break;
case 'interest':
	$title = '修改"研究方向"';
	break;
default:
	$title = '出错，请关闭本窗口。';
}
?>
<h1><?= $title; ?></h1>
<div style="text-align:left;margin:10px;">
<form action="/admin/change" method="post">
	<input type="hidden" name="name" value="<?= $name; ?>" />
	<h3>把源代码直接粘贴到下面况内：</h3>
	<textarea style="width:550px;height:300px;"
		name="content"><?php @ include "static/$name.php"; ?></textarea>
	<br /><br />
	<input type="submit" />
</form>
</div>

<?php include 'footer.php'; ?>
